﻿namespace SimpleTicketBooking.Service
{
    /// <summary>
    /// JWT interface
    /// </summary>
    public interface IJWT
    {
        /// <summary>
        /// generate Token
        /// </summary>
        /// <param name="Claims">cutomerized info to be included in jwt</param>
        /// <returns></returns>
        string GetToken(IDictionary<string, object> Claims);
        /// <summary>
        /// validate Token
        /// </summary>
        /// <param name="Token">characters to be validated</param>
        /// <param name="Claims">input Claims info</param>
        /// <returns></returns>
        bool ValidateToken(string Token, out Dictionary<string, object> Claims);
    }
}
